<div id="discounts">
	<style type="text/css">
		#discountlist #list_item:hover{background-color:#F9F9F9;}
	</style>
	<h2>优惠</h2>
	% if c.discounts.count() == 0 :
		<div style="padding-left:10px;">暂无优惠。</div>
	% else :
		<div id="discountlist" style="padding-top:5px;">
		% for d in c.discounts :
			<div id="list_item" style="border-bottom:1px solid #DDDDDD;padding:5px;">
				<div style="color:#A1A0A0;">${d.validTime.strftime('%Y-%m-%d')} -- ${d.expireTime.strftime('%Y-%m-%d')}</div>
				<div style="padding-left:10px;">${d.name}</div>
			</div>
		% endfor
		</div>
	% endif
</div>